import request from '@/utils/request'
export function getWarnings(data:any) {
    return request({
      url: '/device/warningList',
      method: 'post',
      data
    });
  }
  export function getRepairs(data:any) {
    return request({
      url: '/device/repairList',
      method: 'post',
      data
    });
  }
  export function resolveWarning(data:any){
    return request({
      url: '/device/resolveWarning',
      method: 'post',
      data
    });
  }
  export function processRepair(data:any){
    return request({
      url: '/device/processRepair',
      method: 'post',
      data
    });
  }
  export function resolveRepair(data:any){
    return request({
      url: '/device/resolveRepair',
      method: 'post',
      data
    });
  }

  export function updateWarning(data:any){
    return request({
      url: '/device/updateWarning',
      method: 'post',
      data
    });
  }
  export function updateRepair(data:any){
    return request({
      url: '/device/updateRepair',
      method: 'post',
      data
    });
  }